home *** CD-ROM | disk | FTP | other *** search
- ;
- ; $PROJECT: binary.datatype
- ;
- ; $VER: Install 39.3 (19.03.95)
- ;
- ; by
- ;
- ; Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
- ;
- ; (C) Copyright 1994,1995
- ; All Rights Reserved !
- ;
-
- (set cpu (database "cpu"))
-
- (set #datatype (cat "binary.datatype"))
- (set #datatype-desc (cat "BINARY"))
-
- (set mode
- (askchoice
- (prompt @app-name)
- (help @askchoice-help)
- (choices "Install" "Remove")
- )
- )
-
- (if mode
- (set pmode "Remove")
- (set pmode "Install")
- )
-
- ; get classes dir
- (set classdir
- (askdir
- (prompt "Where do the Classes belong")
- (help @askdir-help)
- (default "SYS:Classes")
- )
- )
-
- ; now do install or remove
- (if mode
- ; Remove
- (
- ; Show what we are doing
- (working "Removing " @app-name)
-
- ; Remove the non-standard pieces
- (delete (tackon classdir "datatypes" #datatype))
- (delete (cat "devs:datatypes/" #datatype-desc) (infos))
-
- ; Don't want to use the confusing "Installation Complete" message
- ; when what we really did was remove things...
- (message "The \"" @app-name "\" components "
- "that you specified have been successfully removed")
- (exit (quiet))
- )
-
- ; Install
- (
- (working "Installing " @app-name)
-
- (set #dtname (tackon "classes/datatypes" #datatype))
-
- ; Install the classes
- (if (OR (= cpu "68000") (= cpu "68010"))
- (run (cat "copy >NIL: " #dtname ".000 t:" #datatype))
- (run (cat "copy >NIL: " #dtname ".020 T:" #datatype))
- )
-
- ; Install the classes
- (copylib
- (prompt (cat "Copying " @app-name))
- (help @copylib-help)
- (source (tackon "t:" #datatype))
- (dest (tackon classdir "DataTypes"))
- (confirm)
- )
-
- (run (cat "delete >NIL: t:" #datatype))
-
- ; Install the descriptors
- (copyfiles
- (prompt "Copying the Descriptors")
- (help @copyfiles-help)
- (source "devs/datatypes")
- (dest "DEVS:DataTypes")
- (pattern "#?")
- (infos)
- (confirm)
- )
-
- ; install include file
- (copyfiles
- (prompt "Copying include file")
- (help @copyfiles-help)
- (source "include")
- (dest "include:")
- (pattern "#?")
- (confirm)
- )
-
- ; install doc file
- (copyfiles
- (prompt "Copying autodoc file")
- (help @copyfiles-help)
- (source "doc")
- (dest "AutoDocs:")
- (pattern "#?")
- (confirm)
- )
-
- ; install AmigaGuide file
- (copyfiles
- (prompt "Copying AmigaGuide file")
- (help @copyfiles-help)
- (source "help")
- (dest "AmigaGuide:")
- (pattern "#?")
- (confirm)
- )
-
- ; Tell the system about the new descriptors
- (run "C:AddDataTypes Refresh")
-
- )
- )
-
- (set @default-dest classdir)
-
-